
var editfiles="{editfiles}";
var imgfiles = '|jpg|jpeg|gif|png|bmp|';
var i=0,n=0,filen=0,dirn=0,v='{v}';
var cookieexp=({intval:cookieexp}+60)*1000; 
var account = '{account}';
var _debug = 1; 
var user="{user}";
var jumpfiles='{jumpfiles}';
var me='{me}',pro=0,coln=6;
var jumpfile=[];
var file=[];
var dir=[];
var images=0;
var daxiao=[];
var editfile=[];
var data=[];
var dn,fn,vdis="";
var big_width=110,big_height=100;
var imgmax={intval:imgmax};
var temp="temp/{tempname}/";
var root='../';
var path=root;
var img_err_t = 0;

var foldernamelen=75,filenamelen=55;  
var namelength=15; 
var preload={intval:preload};  

var newwinmargin = 100;
var textwinheight = 300;
var textwinwidth = 400;
var topzindex = 1050;

var allowurlencode ={intval:allowurlencode};
var mouse_x =0,mouse_y=0,movenotice = 1;
var pageonloading = 1;
var isIE = (navigator.userAgent.indexOf("MSIE") != -1);
var maxindex = 20;
var search_content = "";
var path_to_id = [],id_to_path = [];
path_to_id[root] = 1;
id_to_path[1] = root;
var path_to_name = [];
var tree_downloaded = [];
var tree_data = {};
var image_path = '{images}';
var last_path = '';
var last_list_items = '';
var last_list_items_temp = '';


var can_not_drop_here = "{CAN_NOT_MOVE_HERE}";
var can_not_move_locked_file = "{CAN_NOT_MOVE_LOCKED_FILE}";

//global ajax setup
$.ajaxSetup(
{
	url: "index.php?p=ajax",
	global: true,
	type: "POST",
	timeout: 30000,
	dataType:'text',
	error: function()
	{
		debug('Connection Error!');
	}
});


$(function()
{
	var refresh_time = {refresh_time}*1000;
	//setInterval(do_refresh,refresh_time);
});

function $_(obj)
{
	return document.getElementById(obj);
}

window.nav = new function()
{
	this.isOpera=(window.opera && navigator.userAgent.match(/opera/gi))?true:false;
	this.isIE=(!this.isOpera && document.all && navigator.userAgent.match(/msie/gi))?true:false;
	this.isSafari=(!this.isIE && navigator.userAgent.match(/safari/gi))?true:false;
	this.isGecko=(!this.isIE && navigator.userAgent.match(/gecko/gi))?true:false;
	this.isFirefox=(!this.isIE && navigator.userAgent.match(/firefox/gi))?true:false;
}

$(function ()
{
	resetdata(editfiles,"editfile");
	resetdata(jumpfiles,"jumpfile");
	if (window.path=="") window.path = root;
	window.linked = 1;
	window.list_table_html = $_('list_main_table').innerHTML;
	reloaddata();

		$(document).bind('mousemove',function (a)
		{
			
			if(!a) a=window.event;
			window.mouse_x = parseInt(a.clientX);
			window.mouse_y = parseInt(a.clientY);
			var d = $_('notice');
			if (d && window.movenotice)
			{
				d.style.left = window.mouse_x+20;
				d.style.top = window.mouse_y;
			}
		});

	///try { on_load(); } catch(e) { }
});

var errorMsg = {
101:"JSON syntax error!"
};

var icon = [];
<!-- BEGIN icons -->
icon['{type}'] = '{image}';
<!-- END -->

